<?php session_start(); 
      if ($_REQUEST['host']) {
      $_SESSION['host'] =  $_REQUEST['host'];
      }
      ?><h1 id="title"><a href="remote.php?host=<?php echo $_SESSION['host']; ?>">iRemote</a></h1>

<a class="button" href="#" onclick="reloadControls()" title="Reload">Reload</a>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>

    <script type="text/javascript" src="lib/prototype.js"></script>
    <script type="text/javascript" src="lib/scriptaculous.js"></script>
    <script type="text/javascript" src="server.js"></script>
    <script type="text/javascript" src="remote.js"></script>

    <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
    <link rel="stylesheet" href="http://ebaspace.com/iphoneport/wp-content/themes/iPhone WP/style.css" type="text/css" media="screen" />
    <style>
      h1 a {
      text-decoration:bold;
      color:#fff;
      }
    </style>
    <meta name="generator" content="WordPress 2.3.3" /> <!-- leave this for stats -->
    <title>iRemote</title>
    <script type="application/x-javascript" src="iphone.js"></script>
  </head>
  <body onload="setHost('<?php echo $_SESSION['host']; ?>'); onLoad();">

    <ul id="mainList" title="Home" selected="true">

    </ul>

    <style type="text/css">
      <!--
          .style1 {font-size: 10px}
        -->
    </style>

    <?php include 'host.php'; ?>

    <div id="mainJS">
      <!-- the communication is done here -->
    </div>

  </body>
</html>

